package com.boot.main.mapper;

import com.boot.main.entity.ScomShop;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ScomShopMapper {
    List<ScomShop> getShops(@Param("currentSize") Integer currentSize, @Param("limit") Integer limit, @Param("name") String name, @Param("userId") Long userId);
    ScomShop getShopById(@Param("id") Long id);
    Integer getTotalCount();
    Integer saveShop(ScomShop shop);
    Integer updateShop(ScomShop shop);
    Integer deleteShop(@Param("id") Long id);
}
